import React from "react";
import './App.css';
import {Route, Redirect, Switch} from "react-router-dom";

import Login from "./pages/login/index";
import Layout from "./layout";

function App() {
  return (
    <div className="App">
        <Switch>
            <Route path="/login" component={Login}/>
            <Route path="/layout" component={Layout}/>
            <Redirect to="/login" />
        </Switch>
    </div>
  );
}

export default App;
